package org.observer;

public class Client {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Observer concreteObserver1 = new ConcreteObserver1();
		Observer concreteObserver2 = new ConcreteObserver2();

		ConcreteSubject1 subject = new ConcreteSubject1();
		subject.addObserver(concreteObserver1);
		subject.addObserver(concreteObserver2);

		subject.firstMethod();
		subject.secondMethod();
	}

}
